package com.kh.first.service;

import com.kh.first.dao.WxDepartmentDao;
import com.kh.first.pojo.common.WxDepartment;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class WxCommonService {
    @Autowired
    WxDepartmentDao wxDepartmentDao;
    public List<WxDepartment> getTree(){
        return wxDepartmentDao.getTree();
    }
}
